package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @hibernate.class table="TaskItem" schema="scsc" dynamic-update="true"
 *                  dynamic-insert="true"
 * 
 */
public class TaskItem implements Serializable {

	/** identifier field */
	private Long id;

	/** nullable persistent field */
	private Long taskId;

	/** nullable persistent field */
	private String name;

	/** nullable persistent field */
	private String url;

	/** nullable persistent field */
	private String needDo;

	/** full constructor */
	public TaskItem(Long taskId, String name, String url, String needDo) {
		this.taskId = taskId;
		this.name = name;
		this.url = url;
		this.needDo = needDo;
	}

	/** default constructor */
	public TaskItem() {
	}

	/**
	 * @hibernate.id generator-class="identity" type="java.lang.Long"
	 *               column="ID" unsaved-value="0"
	 * 
	 */
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @hibernate.property column="taskID" length="18"
	 * 
	 */
	public Long getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	/**
	 * @hibernate.property column="name" length="60"
	 * 
	 */
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @hibernate.property column="url" length="100"
	 * 
	 */
	public String getUrl() {
		return this.url.trim();
	}

	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @hibernate.property column="needDo" length="10"
	 * 
	 */
	public String getNeedDo() {
		return this.needDo;
	}

	public void setNeedDo(String needDo) {
		this.needDo = needDo;
	}

	public String toString() {
		return new ToStringBuilder(this).append("id", getId()).toString();
	}

}
